const path = require('path');
const {
    override,
    addWebpackAlias,
    fixBabelImports
} = require('customize-cra');

// 按需引入
module.exports = override(
    // 配置别名
     addWebpackAlias({        
        ["@"]: path.resolve(__dirname, "src")
         // ["mock"]: path.resolve(__dirname, "src/mock")            
    }),
    // 配置 ant 按需引入
    fixBabelImports('import', {
        libraryName: 'antd-mobile',
        style: 'css',
    })
)